package cn.edu.sctu.sctu_lysd.presenter;

import android.app.Activity;
import android.content.Context;
import android.widget.EditText;

import cn.edu.sctu.sctu_lysd.biz.GoodsMessageBiz;
import cn.edu.sctu.sctu_lysd.utils.SharePreferenceUtils;

/**
 * Created by wangfuxin on 2017-04-09.
 */

public class GoodsMessagePresenter implements GoodsMessageBiz.Presenter{

    private Activity mActivity;
    private GoodsMessageBiz.GoodsMessageView mView;

    private SharePreferenceUtils mSharePreference;

    public GoodsMessagePresenter(Activity activity, GoodsMessageBiz.GoodsMessageView mView) {
        this.mActivity = activity;
        this.mView = mView;
    }

    @Override
    public void start() {

        mSharePreference = SharePreferenceUtils.getInstance(mActivity);

    }

    @Override
    public String getInputSting(EditText view) {

        if (view != null) {
            return view.getText().toString();
        }

        return "";
    }

    @Override
    public void selectPhoto() {

    }

    @Override
    public void uploadMessage(String category, String weight, String describe) {




    }

    @Override
    public String getBundleData() {
        return "";
    }
}
